﻿using System.Security.Cryptography.X509Certificates;
using System.Web.Http;
using Medora.Model.Classifiers;
using Medora.Services;

namespace MvcApp.Controllers
{
    [RoutePrefix("api/Classifiers")]
    public class ClassifiersController : BaseApiController
    {
        private readonly IService<ScheduleType, ClassifierFilter> _scheduleTypeService;

        public ClassifiersController(IService<ScheduleType, ClassifierFilter> scheduleTypeService)
        {
            _scheduleTypeService = scheduleTypeService;
        }

        [Route("GetScheduleTypes")]
        public IHttpActionResult GetScheduleTypes()
        {
            return Ok(_scheduleTypeService.Get(new ClassifierFilter()));
        }
    }
}